package org.ManagerSystem.services;

import org.ManagerSystem.DTO.PageBean;
import org.ManagerSystem.entity.Department;

import java.util.List;

/**
 * 用来处理与部门相关的业务的服务层接口
 * @author 群威
 */
public interface DepartmentService {

    //按部门 did 来查询部门信息
    Department queryById(long did);

    //查询所有部门的信息
    PageBean<Department> queryByPage(int currentPage);

    void save(Department department);

    void deleteById(long did);

    void update(Department department);

    List<Department> queryAll(long rid , long did);
}
